package strategy;

import org.springframework.stereotype.Component;

/**
 * 现金支付策略实现类
 */
@Component("cashPayment")
public class CashPayment implements PaymentStrategy {
    @Override
    public void pay(double amount) {
        System.out.println("使用现金支付：¥" + amount);
        System.out.println("支付完成！");
    }
}